<%-- 
    Document   : modification
    Created on : 19 déc. 2012, 16:57:05
    Author     : CDI211
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <link type="text/css" rel="stylesheet" href="<c:url value="/inc/style.css" />" />
        <title>Compte</title>
   </head>
    <body>
        
        <div id="header">
            <c:import url="/inc/header.jsp"/>
        </div>
        <h2> Mon compte</h2>
        <div id="article">
        <form method="POST" action="<c:url value="/ctrl/modification.jsp"/>" >
                <input type="hidden" name="action" value="modifparam" />
                <fieldset>
                  <legend>Modifier les paramètres du compte</legend>
                      <label for="sexe">Civilité :</label>
                      <select name="sexe">
                          <option <c:if test="${client.cliSexe == 'M.'}">selected</c:if> >M.</option>
                        <option <c:if test="${client.cliSexe == 'Mlle.'}">selected</c:if> >Mlle.</option>
                        <option <c:if test="${client.cliSexe == 'Mme.'}">selected</c:if> >Mme.</option>
                      </select>
                      <br>  
                      <label for="nomcli">Nom :</label>
                      <input type="text" name="nomcli"  value="<c:out value="${client.cliNom}"/>"/>
                      <c:out value="${form.erreurs['nomcli']}"/>
                      <br> 
                      <label for="prenom">Prénom :</label>
                      <input type="text" name="prenom"  value="<c:out value="${client.cliPrenom}"/>"/>
                      <c:out value="${form.erreurs['prenom']}"/>
                      <br> 
                      <label for="datenais">Date de naissance :</label>
                      <input type="text" name="datenais"  id="datenais" value="<c:out value="${client.cliDateNaissance}"/>"/>
                      <c:out value="${form.erreurs['datenais']}"/>
                      <br> 
                      <label for="email">Identifiant : </label>
                      <input type="email" name="emailinsc"  value="<c:out value="${client.cliLogin}"/>" size="20" maxlength="60"/>
                      <c:out value="${form.erreurs['emailinsc']}"/>
                      <br>
                      <label for="mdp">Mot de passe :</label>
                      <input type="password" name="mdpinsc" size="20" value="${client.cliMdp}" maxlength="20"/>
                      <c:out value="${form.erreurs['mdpinsc']}"/>
                      <br>
                      <label for="mdp">Confirmer mot de passe :</label>
                      <input type="password" name="confmdp"  size="20" value="${client.cliMdp}" maxlength="20"/>
                      <c:out value="${form.erreurs['confmdp']}"/>
                      <br>
                      <label for="newsletter">Newsletter :</label>  <input type="checkbox" name="newsletter" <c:if test="${client.cliNewsletter == true}" >checked </c:if> /> 
                      <br> 
                      <input type="submit" value="Valider"/>
                      <input type="reset" value="Annuler"/>               
                      <c:out value="${form.erreurs['erreur']}"/>
                </fieldset>
        </form>
      </div> 
      <div id="footer">
        <c:import url="/inc/footer.jsp"/>
      </div>           
    </body>
</html>
